/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aljfce.business.calendar.boundary;

import java.util.Date;
import org.primefaces.event.SelectEvent;
import org.primefaces.model.DefaultScheduleEvent;
import org.primefaces.model.ScheduleEvent;
import org.primefaces.model.ScheduleModel;

/**
 *
 * @author EOroan
 */
/*public class ScheduleBean {

    private ScheduleModel model;
    private ScheduleEventImpl event = new DefaultScheduleEvent();

    public ScheduleBean() {
        eventModel = new ScheduleModel<ScheduleEvent>();
    }

    public ScheduleModel<ScheduleEvent> getModel() {
        return model;
    }

    public ScheduleEventImpl getEvent() {
        return event;
    }

    public void setEvent(ScheduleEventImpl event) {
        this.event = event;
    }

    public void addEvent() {
        if (event.getId() == null) {
            eventModel.addEvent(event);
        } else {
            eventModel.updateEvent(event);
        }
        event = new DefaultScheduleEvent(); //reset dialog form
    }

    public void onEventSelect(SelectEvent e) {
        event = (ScheduleEvent) e.getObject();
    }

    public void onDateSelect(SelectEvent e) {
        Date date = (Date) e.getObject();
        event = new DefaultScheduleEvent("", date, date);
    }

}
*/
